package com.rw;

import com.rw.pojo.Function;
import com.rw.pojo.FunctionA;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author rabit
 */
public class TestAop {

    public static void main(String[] args) {
        ApplicationContext ac= new ClassPathXmlApplicationContext("applicationcontext.xml");
        Function fa = (Function) ac.getBean("fa");
        fa.test();
        System.out.println("--------");
        Function fa1 = (Function) ac.getBean("funcA");
        fa1.test();
    }
}
